package com.zb.common.po.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


@Component("configInfo")
public class ConfigInfo {
    /**
     * 项目文件下载地址
     */
    @Value("#{applicationProperties['zb.source_code_download_path']}")
    private String sourceCodeDownloadPath;

    @Value("#{applicationProperties['zb.source_code_name_maven']}")
    private String sourceCodeName4Maven;

    @Value("#{applicationProperties['zb.source_code_name_normal']}")
    private String sourceCodeName4Normal;

    /**
     * 顶级域名
     */
    @Value("#{applicationProperties['zb.domain']}")
    private String domain;

    /**
     * session失效时间
     */
    @Value("#{applicationProperties['zb.expiry']}")
    private int expiry = 1800;

    public String getSourceCodeDownloadPath() {
        return sourceCodeDownloadPath;
    }

    public void setSourceCodeDownloadPath(String sourceCodeDownloadPath) {
        this.sourceCodeDownloadPath = sourceCodeDownloadPath;
    }

    public String getSourceCodeName4Maven() {
        return sourceCodeName4Maven;
    }

    public void setSourceCodeName4Maven(String sourceCodeName4Maven) {
        this.sourceCodeName4Maven = sourceCodeName4Maven;
    }

    public String getSourceCodeName4Normal() {
        return sourceCodeName4Normal;
    }

    public void setSourceCodeName4Normal(String sourceCodeName4Normal) {
        this.sourceCodeName4Normal = sourceCodeName4Normal;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public int getExpiry() {
        return expiry;
    }

    public void setExpiry(int expiry) {
        this.expiry = expiry;
    }

}